package com.xuexiang.xuidemo.page.text;

import com.xuexiang.xuidemo.page.base.BasePageAbilitySlice;
import com.xuexiang.xuidemo.page.base.Page;
import com.xuexiang.xuidemo.page.base.PageClassListAbilitySlice;
import com.xuexiang.xuidemo.page.text.supertextview.SuperButtonAbilitySlice;
import com.xuexiang.xuidemo.page.text.supertextview.SuperClickAbilitySlice;
import com.xuexiang.xuidemo.page.text.supertextview.SuperNetPictureLoadingAbilitySlice;
import com.xuexiang.xuidemo.page.text.supertextview.SuperTextCommonUseAbilitySlice;

import org.jetbrains.annotations.NotNull;

import java.util.Arrays;
import java.util.List;

/**
 * 可拓展的Text
 *
 * @since 2021-04-06
 */
@Page(name = "可拓展的TextView", action = "SuperTextAbilitySlice", ability = TextAbility.class)
public class SuperTextAbilitySlice extends PageClassListAbilitySlice {
    @Override
    protected List<Class<? extends BasePageAbilitySlice>> getPages() {
        return getSuperTextClasses();
    }

    @NotNull
    static List<Class<? extends BasePageAbilitySlice>> getSuperTextClasses() {
        return Arrays.asList(
            SuperClickAbilitySlice.class,
            SuperButtonAbilitySlice.class,
            SuperTextCommonUseAbilitySlice.class,
            SuperNetPictureLoadingAbilitySlice.class
        );
    }
}
